#!/usr/bin/env python
# vim:fileencoding=utf-8

from calibre.web.feeds.news import BasicNewsRecipe


class Kholod(BasicNewsRecipe):
    title = u'\u0425\u043E\u043B\u043E\u0434'
    description = u'\u0418\u0441\u0442\u043E\u0440\u0438\u0438 \u043E \u0420\u043E\u0441\u0441\u0438\u0438: \u043C\u044B \u0438\u0449\u0435\u043C \u0437\u0430\u0445\u0432\u0430\u0442\u044B\u0432\u0430\u044E\u0449\u0438\u0435 \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u043F\u043E \u0432\u0441\u0435\u0439 \u0420\u043E\u0441\u0441\u0438\u0438, \u0430 \u043F\u043E\u0442\u043E\u043C \u0440\u0430\u0441\u0441\u043A\u0430\u0437\u044B\u0432\u0430\u0435\u043C \u0432\u0430\u043C.'  # noqa
    __author__ = 'bugmen00t'
    publisher = '\u0422\u0430\u0438\u0441\u0438\u044F \u0411\u0435\u043A\u0431\u0443\u043B\u0430\u0442\u043E\u0432\u0430'
    publication_type = 'blog'
    oldest_article = 14
    max_articles_per_feed = 200
    language = 'ru'
    cover_url = 'https://image.simplecastcdn.com/images/93a97011-6988-4787-8242-e202b2840fde/08e85f64-9901-44e1-b20c-7da01c5ce0c0/holodpodcastlogo.jpg'
    auto_cleanup = False
    no_stylesheets = False

    remove_tags_before = dict(name='h1')

    remove_tags_after = dict(
        name='div', attrs={'class': 'article__content the-content text-column'}
    )

    remove_tags = [dict(name='div', attrs={'class': 'inlinemore'})]

    feeds = [(
        u'\u0410\u043A\u0442\u0443\u0430\u043B\u044C\u043D\u043E',
        'https://holod.media/sections/daily/feed/'
    ),
             (
                 u'\u0418\u0441\u0442\u043E\u0440\u0438\u0438',
                 'https://holod.media/sections/stories/feed/'
             ),
             (
                 u'\u041C\u043D\u0435\u043D\u0438\u044F',
                 'https://holod.media/sections/opinions/feed/'
             ),
             (
                 u'\u0418\u043D\u0442\u0435\u0440\u0432\u044C\u044E',
                 'https://holod.media/sections/interviews/feed/'
             ),
             (
                 u'\u041E\u0431\u044A\u044F\u0441\u043D\u044F\u0435\u043C',
                 'https://holod.media/sections/explainers/feed/'
             )]
